package thread.Executor;

import java.util.List;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.SynchronousQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

/**
 * @author huangguo
 * @time 19-8-3 下午2:07
 */
public class FinalizeTest {
    public static void main(String[] args) throws Exception {

        ExecutorService consumerPool = new ThreadPoolExecutor(1, 5,
                60, TimeUnit.SECONDS,
                new SynchronousQueue<Runnable>());
        consumerPool = null;
        System.gc();
        System.out.println("8");
    }

}

